package de.herberlin.webapp.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
@Entity
public class User implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public static final String MY_SCOPE_NAME="sessionOwner";
	
	@Id
	private String username;
	private String password;
	@Column(unique=true)
	private String email;
	
	@Transient
	boolean loggedIn=false;
	
	public User() {
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isLoggedIn() {
		return loggedIn;
	}

	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}

}
